package bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
@Setter
@Getter
@AllArgsConstructor
public class ApplicationForSupervisorEntry implements Comparable<ApplicationForSupervisorEntry>, Serializable {
    private int teacher_id;
    private Teacher teacher;
    private int priority;
    private ApplicationForSupervisor applicationForSupervisor;
    /*public String toString()
    {
        final String TAB = "    ";

        String retValue = "";

        retValue = "applicationForSupervisorEntries ( "
                + super.toString() + TAB
                + "teacher_id = " + this.teacher.getId() + TAB
                + "priority = " + this.priority+ TAB
                + "applicationForSupervisor = " + this.applicationForSupervisor + TAB
                + " )";

        return retValue;
    }*/
    @Override
    public int compareTo(ApplicationForSupervisorEntry o) {
        return this.priority-o.priority;
    }
}
